package study.web;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/cron")
public class CronController {

	@RequestMapping(value = "/instance", method = RequestMethod.GET)
	public String instance(ModelMap model) {
		model.addAttribute("now", new Date());
		return "cron/instance";
	}
}
